package com.itheima.day14.Myvolatile.test1;

import java.util.concurrent.Callable;

// 小皮
public class MyCallable2 implements Callable {

    @Override
    public Object call() throws Exception {
        while(Money.money>=10000){
            System.out.println("钱还不少");
        }
        System.out.println("钱变少了！只剩" + Money.money +"元");
        return null;
    }
}
